package secloud

import (
	"strings"
)

func verifyAndStandardizeConfig(raw *ClientConfig) *ClientConfig {
	cfg := &ClientConfig{}

	if !strings.Contains(raw.ServerUrl, "http://") {
		cfg.ServerUrl = "http://" + raw.ServerUrl
	} else {
		cfg.ServerUrl = raw.ServerUrl
	}

	return cfg
}

func setBaseUrl(url string) {
	BaseSvc.C.SetBaseURL(url)
}
